package com.ruoyi.project.bi.domain.portal;


import com.ruoyi.project.bi.domain.common.BaseEntity;
import com.ruoyi.project.bi.util.RSBIUtils;

import java.util.Date;

public class ShareUrl extends BaseEntity {

    private String token;

    /** 1true, 0 false */
    private Integer islogin;

    /** 小时为单位， -1表示不限制 */
    private Integer yxq;
    
    private Date crtdate;
    
    private String reportId;

	/** //创建人 */
    private Integer crtUser;

	/** //类型，1 报表， 2 仪表盘 */
    private Integer rType;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }

    public Integer getIslogin() {
        return islogin;
    }

    public void setIslogin(Integer islogin) {
        this.islogin = islogin;
    }

    public Integer getYxq() {
        return yxq;
    }

    public void setYxq(Integer yxq) {
        this.yxq = yxq;
    }

	public Date getCrtdate() {
		return crtdate;
	}

	public void setCrtdate(Date crtdate) {
		this.crtdate = crtdate;
	}

	public String getReportId() {
		return reportId;
	}

	public void setReportId(String reportId) {
		this.reportId = reportId;
	}

	public Integer getCrtUser() {
		return crtUser;
	}

	public void setCrtUser(Integer crtUser) {
		this.crtUser = crtUser;
	}
	public Integer getrType() {
		return rType;
	}
	public void setrType(Integer rType) {
		this.rType = rType;
	}

	@Override
	public void validate() {
		this.token = RSBIUtils.htmlEscape(this.token);
		this.reportId = RSBIUtils.htmlEscape(this.reportId);
	}
}